#ifndef QAUDIOFORMAT_H_5529529D_1C46_405B_A3A8_AF5CC7CB1158
#define QAUDIOFORMAT_H_5529529D_1C46_405B_A3A8_AF5CC7CB1158

#include "AudioUtils_global.h"

namespace AudioUtils {

class QAudioFormatPrivate;

class AUDIOUTILS_EXPORT QAudioFormat
{
public:
    QAudioFormat();
    ~QAudioFormat();

public:
    bool open(const QString& path);
	QString path() const;

	quint64 samples() const;
	int samplerate() const;
	int channels() const;

	bool mono() const;
	bool stereo() const;

	double totalTimeInSeconds() const;
	quint32 totalTimeInMs() const;

private:
    QAudioFormatPrivate* p;
};

}

#endif // QAUDIOFORMAT_H_5529529D_1C46_405B_A3A8_AF5CC7CB1158
